package com.park.tool;

import lombok.Data;

/**
 * Created by park-tool on 2020/8/28
 */
@Data
public class Res<T> {
    int resCode = 0;
    String resMsg;
    T data;

    public boolean isSuccess() {
        return this.resCode == 0 || this.resCode == 1;
    }
}
